package com.quick.proxy.server.event;

import com.quick.proxy.core.pojo.ProxyMapping;
import io.netty.channel.ChannelHandlerContext;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * Description: 创建访问者代理服务事件
 * Author: Administrator
 * Date: 2023/7/6
 *
 * @author 吃素不吃肉
 */
@Getter
public class VisitorProxyServerCreateEvent extends ApplicationEvent {
    public ChannelHandlerContext ctx;
    public List<ProxyMapping> accessKeyProxyMapping;
    public String accessKey;

    public VisitorProxyServerCreateEvent(Object source, ChannelHandlerContext ctx, List<ProxyMapping> accessKeyProxyMapping, String accessKey) {
        super(source);
        this.ctx = ctx;
        this.accessKeyProxyMapping = accessKeyProxyMapping;
        this.accessKey = accessKey;
    }

}
